Check Leap Year Program

if(isset($_POST['submit']))
 {
    $year=$_POST['year'];
    if($year%4==0)
          {
            $leap="It is a leap year";
          }
      else
         {
           $leap="It is not a leap year";
        }
}
 ?>
 


 
 Leap Year
 

 

 


 
 
   
           
   
 
 

Enter the year:  
   

 if(isset($_POST['submit'])){   
                        echo $leap;      }  
     
     ?>   
           

 

In this code output(It is not a leap year) is displaying before entering the input value.

the output should get after giving input value. how to solve it?

0   0
shubhangi kendre
profile Jack 21st October 2025

Space Waves is a rhythmic adventure that blends dazzling graphics, engrossing soundtracks, and quick-paced action, making Space Waves more than just another casual game.

Write a comment ...
Post comment
Cancel
profile Goldstein 17th October 2025

Why Papa’s Freezeria Is Always a Favorite Game
Since its launch, Papa’s Freezeria has always stood out in the Papa Louie series thanks to its smooth gameplay, engaging pace, and the satisfaction of completing the perfect ice cream. Each workday, players will face a more extensive menu, more demanding tastes, and the need for utmost precision in every detail. It’s the combination of speed, precision, and aesthetics that makes this game so appealing.

Jack
21-10-2025 00:00

The game Space Waves appears straightforward at first, but as soon as you start playing, you'll see how difficult and captivating it can be. Rather of emphasizing conventional action or shooting mechanics, <a href="https://spacewavesonline.io/">Space Waves</a> transports players to a world where movement and sound blend together.

Write a comment ...
Post comment
Cancel
profile Jacob324 4th October 2025

Wordle Unlimited online is more than just a word puzzle—it’s a brain-training game that entertains while improving your language skills. Play Wordle Unlimited free today and enjoy endless word challenges!

Write a comment ...
Post comment
Cancel
profile blacka 20th May 2025

Ready to run through space? Enter Run 3 and explore each challenging planet!

Write a comment ...
Post comment
Cancel
profile Bro 12th May 2025

 [url=http://papasgames3d.com/]Papa's Games[/url] is game guess the song, you can immerse yourself in the world of music 

Write a comment ...
Post comment
Cancel
profile 19th December 2024

Great question! The 1243 angel number code is often interpreted based on your current situation rather than specific years. While you can experiment with different numbers like 3000 or 911, the meaning might shift. Speaking of numbers, have you tried the Slop Game? It’s a fun way to engage with numbers and can offer a unique perspective on their significance!

Write a comment ...
Post comment
Cancel
profile Billy 17th December 2024

Great read! It’s like stumbling upon a treasure chest—but instead of gold, it’s full of valuable insights. I was this close to getting lost in the rabbit hole of endless questions until our all-knowing friend Google led me here. Grateful it did! Keep up the great work, looking forward to more gems like this.

Write a comment ...
Post comment
Cancel
profile DonnyNienow 31st October 2024

To determine if a year is a leap year, the program checks if it’s divisible by 4, but not by 100, unless it’s also divisible by 400. This logic ensures that we don’t lose track of those extra days. Speaking of tracking, when you're taking a break, why not play the Dinosaur Game? It's a fun way to pass the time while you ponder leap years!

Write a comment ...
Post comment
Cancel
profile fly 28th October 2024

Duck Duck Clicker is an addictive clicking game where you earn Ducket$ by clicking cute ducks. Upgrade your clicking power, customize your ducks, and aim for achievements. Perfect for quick fun breaks!

Write a comment ...
Post comment
Cancel
profile dordle 17th October 2024

After work, to reduce tension, I frequently play run 3, a delightful amusement game. Come and have fun; I assure you it will be very appealing. 

Write a comment ...
Post comment
Cancel
profile Nadia 9th October 2024

To check if a year is a leap year, you can create a simple program. A leap year is divisible by 4, but not every year divisible by 100 is a leap year unless it’s also divisible by 400. For fun, you could discuss this topic with strangers on Omegle, engaging in mathematical conversations and learning from different perspectives!

Write a comment ...
Post comment
Cancel
profile 21st August 2024

The Leap Year Program is designed to handle dates for leap years, ensuring accurate calculations. It's crucial for applications that require precise time management, such as Monkey Mart's sales tracking system. By integrating this program, Monkey Mart can avoid errors in date-related data. This leap year adjustment ultimately supports reliable and accurate financial reporting.

Write a comment ...
Post comment
Cancel
profile Robert 16th August 2024

Friday Night Funkin is a popular free-to-play rhythm game that has taken the gaming world by storm. Developed by a team of Newgrounds creators, this indie game combines catchy music, quirky characters, and challenging gameplay to create an addictive experience.

Write a comment ...
Post comment
Cancel
profile Felix 1st July 2024

It's fun to know your rice purity level and compare your rice purity score with your friends. Many stories are suggested to understand each other better.

Write a comment ...
Post comment
Cancel
profile inserts 22nd June 2024

Over the years, our commitment to provide the right product to all customers has ccmg Insert been http://philipjere.mee.nu/ consistent. Backed by our tungsten inserts from space carbide drilling Inserts team of experienced engineers, we can support all your tooling SNMG Insert requirements. Carbide Inserts We is a parting tool Inserts deep hole drilling Inserts supplier https://jingzuan.bcz.com/ that you WCKT Insert can trust.

Write a comment ...
Post comment
Cancel

Related Post

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site